<template>
  <ElConfigProvider size="default" :locale="locales[language]" :z-index="9999">
    <RouterView />
  </ElConfigProvider>
</template>

<script setup lang="ts">
  import { RouterView } from 'vue-router'
  import { useUserStore } from './store/modules/user'
  import zh from 'element-plus/es/locale/lang/zh-cn'
  import en from 'element-plus/es/locale/lang/en'

  const locales = {
    zh: zh,
    en: en
  }

  console.log('年时的阿萨德')

  const userStore = useUserStore()
  const { language } = storeToRefs(userStore)
</script>

<style lang="scss" scoped></style>
